/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.zaahir.assignment2.OCP.Conf;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.zaahir.assignment2.OCP.Impl.BusinessLoanValidator;
import za.ac.cput.zaahir.assignment2.OCP.Impl.LoanRequestHandler;
import za.ac.cput.zaahir.assignment2.OCP.Impl.PersonalLoanValidator;

/**
 *
 * @author Nashief
 */ 
@Configurable
public class AppConf {
    @Bean
    public BusinessLoanValidator bl() 
    {
        return new BusinessLoanValidator(); 
    }
    @Bean
    public PersonalLoanValidator pl() 
    {
        return new PersonalLoanValidator(); 
    }
    
}
